package com.api.shopapi.service.impl;

import com.api.shopapi.entity.CashierLoginRecord;
import com.api.shopapi.mapper.CashierLoginRecordMapper;
import com.api.shopapi.service.CashierLoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CashierLoginRecordServiceImplOne")
public class CashierLoginRecordServiceImpl implements CashierLoginRecordService {

    @Autowired
    CashierLoginRecordMapper cashierLoginRecordMapper;

    @Override
    public
    int insert(CashierLoginRecord cashierLoginRecord){
        return cashierLoginRecordMapper.insert(cashierLoginRecord);
    }
    @Override
    public
    int delete(String cashierLoginRecordCode){
        return cashierLoginRecordMapper.delete(cashierLoginRecordCode);
    }
    @Override
    public
    int update(CashierLoginRecord cashierLoginRecord){
        return cashierLoginRecordMapper.update(cashierLoginRecord);
    }
    @Override
    public
    CashierLoginRecord getByCashierLoginRecordCode(String cashierLoginRecordCode){
        return cashierLoginRecordMapper.getByCashierLoginRecordCode(cashierLoginRecordCode);
    }
    @Override
    public
    List<CashierLoginRecord> getListByUserCodeLoginStatus(String userCode, int loginStatus){
        return cashierLoginRecordMapper.getListByUserCodeLoginStatus(userCode,loginStatus);
    }

}
